Fix example Makefiles
authorMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jul 2016 17:54:11 +0000 (13:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jul 2016 17:54:11 +0000 (13:54 -0400)
Put OBJS before LIBS on the commandline to make things
work better.

https://bugzilla.gnome.org/show_bug.cgi?id=768142

examples/application1/Makefile.example
examples/application10/Makefile.example
examples/application2/Makefile.example
examples/application3/Makefile.example
examples/application4/Makefile.example
examples/application5/Makefile.example
examples/application6/Makefile.example
examples/application7/Makefile.example
examples/application8/Makefile.example
examples/application9/Makefile.example

index ffab3d434e4fc70831e31cae68560a24379f6fa4..47d2ae93535c4ff59170b06f6f57db36023e2fb1 100644 (file)
@@ -13,7 +13,7 @@ all: exampleapp
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS)
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f $(OBJS)
index 917e3c70f0cc0cef91fd5e27a56ec41d72a18218..306da637e6d7f7e61a851eeadc0763d56a2a0a18 100644 (file)
@@ -25,7 +25,7 @@ resources.c: exampleapp.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --source
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS) gschemas.compiled
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f org.gtk.exampleapp.gschema.valid
index c6f82933cc0f9fca5095ada5c58257356b12b128..844fffdc17e32beaeb8049448f10b603c5c788fa 100644 (file)
@@ -18,7 +18,7 @@ resources.c: exampleapp.gresource.xml window.ui
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS)
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f $(BUILT_SRC)
index c6f82933cc0f9fca5095ada5c58257356b12b128..844fffdc17e32beaeb8049448f10b603c5c788fa 100644 (file)
@@ -18,7 +18,7 @@ resources.c: exampleapp.gresource.xml window.ui
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS)
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f $(BUILT_SRC)
index 97b2265930be27e18f8fab144ede8526352cba54..cc560535ac7c7e629c885738177b76348efafd58 100644 (file)
@@ -18,7 +18,7 @@ resources.c: exampleapp.gresource.xml window.ui app-menu.ui
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS)
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f $(BUILT_SRC)
index e667ebf9600329eefcbbf500452fc9faf06d9f9b..d056de216fa3da8acdb1e727b2e8534a4fe4d8a2 100644 (file)
@@ -25,7 +25,7 @@ resources.c: exampleapp.gresource.xml window.ui app-menu.ui
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS) gschemas.compiled
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f org.gtk.exampleapp.gschema.valid
index eb9cff4c3c540dead64d5eb7246fd354a0471026..9ae9ad511acf99fd552678afb3b317407844fa6b 100644 (file)
@@ -25,7 +25,7 @@ resources.c: exampleapp.gresource.xml window.ui app-menu.ui
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS) gschemas.compiled
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f org.gtk.exampleapp.gschema.valid
index 917e3c70f0cc0cef91fd5e27a56ec41d72a18218..306da637e6d7f7e61a851eeadc0763d56a2a0a18 100644 (file)
@@ -25,7 +25,7 @@ resources.c: exampleapp.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --source
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS) gschemas.compiled
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f org.gtk.exampleapp.gschema.valid
index 917e3c70f0cc0cef91fd5e27a56ec41d72a18218..306da637e6d7f7e61a851eeadc0763d56a2a0a18 100644 (file)
@@ -25,7 +25,7 @@ resources.c: exampleapp.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --source
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS) gschemas.compiled
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f org.gtk.exampleapp.gschema.valid
index 917e3c70f0cc0cef91fd5e27a56ec41d72a18218..306da637e6d7f7e61a851eeadc0763d56a2a0a18 100644 (file)
@@ -25,7 +25,7 @@ resources.c: exampleapp.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --source
        $(CC) -c -o $(@F) $(CFLAGS) $<
 
 exampleapp: $(OBJS) gschemas.compiled
-       $(CC) -o $(@F) $(LIBS) $(OBJS)
+       $(CC) -o $(@F) $(OBJS) $(LIBS)
 
 clean:
        rm -f org.gtk.exampleapp.gschema.valid